<template>
  <div>
    <div>
      <h4>排版问题可加一label占4份空行解决</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="5">
          <span>伸舌</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless1_radio1">
              <el-radio :label="1">a</el-radio>
              <el-radio :label="2">b</el-radio>
              <el-radio :label="3">c</el-radio>
              <el-input v-model="pgForm.useless1_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>摆左</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless1_radio2">
              <el-radio :label="1">a</el-radio>
              <el-input v-model="pgForm.useless1_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>摆右</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless1_radio3">
              <el-radio :label="1">a</el-radio>
              <el-radio :label="2">b</el-radio>
              <el-radio :label="3">c</el-radio>
              <el-input v-model="pgForm.useless1_input3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>舔上唇</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless1_radio4">
              <el-radio :label="1">a</el-radio>
              <el-radio :label="2">b</el-radio>
              <el-input v-model="pgForm.useless1_input4" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>舔下唇</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless1_radio5">
              <el-radio :label="1">a</el-radio>
              <el-radio :label="2">b</el-radio>
              <el-radio :label="3">c</el-radio>
              <el-radio :label="4">d</el-radio>
              <el-radio :label="5">e</el-radio>
              <el-input v-model="pgForm.useless1_input5" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "useless1",
  title: "排版问题可加一label占4份空行解决",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm: {
        useless1_radio1: '',
        useless1_radio2: '',
        useless1_radio3: '',
        useless1_radio4: '',
        useless1_radio5: '',
        useless1_input1: '',
        useless1_input2: '',
        useless1_input3: '',
        useless1_input4: '',
        useless1_input5: '',
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
